package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.item.to.SkuDetailTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:lyd
 **/
@FeignClient("service-item")
public interface SkuDetailFeignClient {

    @GetMapping("/api/inner/item/detail/{skuId}")
    Result<SkuDetailTO> getSkuDetail(@PathVariable("skuId") Long skuId);
}
